package com.king.pattem.factory.abstractFactory.factory.impl;

import com.king.pattem.factory.abstractFactory.car.ICar;
import com.king.pattem.factory.abstractFactory.car.impl.Benz;
import com.king.pattem.factory.abstractFactory.factory.IFactory;
import com.king.pattem.factory.abstractFactory.plane.IPlane;
import com.king.pattem.factory.abstractFactory.plane.impl.J20;
/**
 *	产品工厂实现类 
 * @author taomk
 */
public class ProductFactoryByNew implements IFactory {

	@Override
	public ICar buildCar() {
		
		ICar car = new Benz();
		return car;
		
	}

	@Override
	public IPlane buildPlane() {
		
		IPlane plane = new J20();
		return plane;
		
	}

}
